package org.xebia.roo.addon.compareto;

import org.springframework.roo.classpath.PhysicalTypeMetadata;
import org.springframework.roo.classpath.details.annotations.populator.AbstractAnnotationValues;
import org.springframework.roo.classpath.details.annotations.populator.AutoPopulate;
import org.springframework.roo.classpath.details.annotations.populator.AutoPopulationUtils;
import org.springframework.roo.model.JavaType;

/**
 * Represents a parsed {@link RooCompareto} annotation.
 *
 */
public class CompareToAnnotationValues extends AbstractAnnotationValues {

	// From annotation
	@AutoPopulate private String[] excludeFields;

	/**
	 * Constructor
	 *
	 * @param governorPhysicalTypeMetadata
	 */
	public CompareToAnnotationValues(final PhysicalTypeMetadata governorPhysicalTypeMetadata) {
		super(governorPhysicalTypeMetadata, new JavaType("org.xebia.roo.addon.compareto.RooCompareto"));
		AutoPopulationUtils.populate(this, annotationMetadata);
	}

	public String[] getExcludeFields() {
		return excludeFields;
	}
}
